<?php

function i_create_meeting(){
	$html = '';
	
	$temp_date_today = date('Y-m-d');
	$temp_date_tomorrow = date('Y-m-d', strtotime("tomorrow"));
	
	$group_id = $_GET['grp'];
	$href_process = 'php/core/Create_meeting/p_create_meeting.php';
	
	$html .= '<div class="wrapper">'.
				'<div class ="header"></div>'.
				'<div class="mainPage" >'.
					'<h2 style="margin-left:400px;"> Create Meeting</h2>'.
					'<p>&nbsp;</p>';
	# display error messages
	if(has_errors()){
		$html .= '<br/><br/>';
		$err = i_get_msg_err();
		$ci = count($err);
		for($i=0; $i<$ci; $i++){
			$html .= '<div align="center" id="error_msg">' . $err[$i] . '</div>';
		}
	}
	$html .=		'<form id="form1" name="form1" method="post" action="'.$href_process.'">'.
						'<table border=" " style="margin-left:310px;">'.
							'<tr>'.
								'<td width="138">Place</td>'.
								'<td width="346"><input type="text" name="place"></td>'.
							'</tr>'.
							'<tr>'.
								'<td>Duration (h)</td>'.
								'<td><input type="text" name="duration"></td>'.
							'</tr>'.
							'<tr>'.
								'<td>Minimal date</td>'.
								'<td><input type="text" name="min_date" value="'.$temp_date_today.'">&nbsp;<b>Will start not earlier</b></td>'.
							'</tr>'.
							'<tr>'.
								'<td>Minimal hour</td>'.
								'<td><input type="text" name="min_time" value="0" size="2"></td>'.
							'</tr>'.
							'<tr>'.
								'<td>Maximal date</td>'.
								'<td><input type="text" name="max_date" value="'.$temp_date_tomorrow.'">&nbsp;<b>Must end before this</b></td>'.
							'</tr>'.
							'<tr>'.
								'<td>Maximal hour</td>'.
								'<td>'.
									'<input type="text" name="max_time" value="0" size="2">'.
									'<input type="hidden" name="group_id" value="'.$_GET['grp'].'">'.
								'</td>'.
							'</tr>'.
						'</table>'.
						'<p>'.
						'<p>&nbsp;</p>'.
						'<div style="margin-left:450px;">'.
							'<input type="submit" name="create" value="Create" style="width:70px;">&nbsp;'.
							'<a href="index.php?id=' . I_GROUP_OVERVIEW . '&grp='.$group_id.'">Back</a></p>'.
						'</div>'.
					'</form>'.
					'<p align="center">&nbsp;</p>'.
				'</div>'.
				'<div class="clear">&nbsp;</div>'.
			'</div>';
	return $html;
} 
?>






	 